import request from '@/utils/request'

// 工单列表（分页）
export function pageList(query) {
  return request({
    url: '/system/wordOrder/list',
    method: 'get',
    loading: true,
    params: query
  })
}

// 工单详情
export function getInfo(id) {
  return request({
    url: '/system/wordOrder/' + id,
    method: 'get',
    loading: true
  })
}

// 工单
export function edit(data) {
  return request({
    url: '/system/wordOrder',
    method: 'put',
    loading: true,
    data: data
  })
}

// 工单删除
export function remove(id) {
  return request({
    url: '/system/wordOrder/' + id,
    method: 'delete',
    loading: true
  })
}
